/**
  ******************************************************************************
  * @file           : nh3co2.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  ******************************************************************************
  */

#include "FreeRTOS.h"

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __nh3co2_H
#define __nh3co2_H

#define UART2_CON_Pin           GPIO_PIN_0
#define UART2_CON_GPIO_Port     GPIOB
#define NH3_Select()            (UART2_CON_GPIO_Port->BRR = UART2_CON_Pin)
#define CO2_Select()            (UART2_CON_GPIO_Port->BSRR = UART2_CON_Pin)

extern void NH3CO2_BspInit(void);
extern void NH3CO2_BreakIsr(void);
extern void NH3CO2_RecvIsr(uint8_t dat);
extern void CO2_UartSendBuf(const uint8_t *buf, uint32_t len);

#endif
